import java.util.ArrayList;
import java.util.List;

public class UsedFunctions {
	
	private static List<String> functions = new ArrayList<String>();

	public static String getUsedFunctionsAsString() {
		String finalStringOfFunctions = "";
		for (String s : functions) {
			finalStringOfFunctions = finalStringOfFunctions.concat(s);
		}
		return finalStringOfFunctions;
	}
	
	public static void addFunctionToUsedFunctions(String XSLMethodNameForFunction) {
		
		String returnString = "";
		if (XSLMethodNameForFunction == "convertLoopToXSL") {
			returnString = "";
		} 
		else if (XSLMethodNameForFunction == "convertLenToXSL") {
			returnString = "";
		} 
		else if (XSLMethodNameForFunction == "convertCutToXSL") {
			returnString = DEFfunctionStrings.cutFunction;
		} 
		else if (XSLMethodNameForFunction == "convertFmtToXSL") {
			returnString = DEFfunctionStrings.fmtDateFunction;
		} 
		else if (XSLMethodNameForFunction == "convertMathToXSL") {
			returnString = "";
		} 
		else if (XSLMethodNameForFunction == "convertPadrToXSL") {
			returnString = DEFfunctionStrings.padRFunction + DEFfunctionStrings.getCharValueFunction;
		} 
		else if (XSLMethodNameForFunction == "convertPadlToXSL") {
			returnString = DEFfunctionStrings.padLFunction + DEFfunctionStrings.getCharValueFunction;
		} 
		else if (XSLMethodNameForFunction == "convertDateMathToXSL") {
			returnString = DEFfunctionStrings.dateMathFunction + DEFfunctionStrings.getDateFromMMDDYYYY;
		} 
		else {
			returnString = "ERROR";
		}
		functions.add(returnString);
	}
	
	
}
